<template>
  <div>
    <navs></navs>
    <!-- 布局 -->
    <div class="userbox">
      <!-- 版心 -->
      <div class="user_banner">
        <!-- 左边部分 -->
        <div class="box_left">
          <router-link to="/user">账户概览</router-link>
          <router-link to="/user/useredit">个人信息</router-link>
          <router-link to="/user/addressedit">地址管理</router-link>
        </div>
        <router-view></router-view>
      </div>
    </div>
    <footers></footers>
  </div>
</template>

<script setup>
// 引入组件
import navs from "../components/Nav.vue";
import footers from "../components/Footer.vue";
</script>

<style lang="less">
* {
  margin: 0;
  padding: 0;
}

.userbox {
  padding: 6rem 0;
  background-color: #f7f8fa;
}

.user_banner {
  width: 88rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
}

.box_left {
  display: flex;
  flex-direction: column;
}

.box_left {
  a {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-decoration: black;
    color: #000;
    width: 140px;
    margin-bottom: 20px;
  }
}
.box_left a:hover {
    color:rgb(143, 3, 3)
}
</style>